#ifndef SQLMANAGER_H
#define SQLMANAGER_H

#include <QObject>

class SqlManager
{
public:
    SqlManager *getInstance()
    {
        if(m_pInstance==NULL)
            m_pInstance=new SqlManager;

        return m_pInstance;
    }

    bool userCheck(const QString&userNameStr,const QString&passwordStr);
private:
    SqlManager();
    static SqlManager *m_pInstance;

    class CGarbo
    {
    public:
        CGarbo()
        {
            if(SqlManager::m_pInstance)
                delete SqlManager::m_pInstance;
        }
    };
    static CGarbo Garbo;
};

#endif // SQLMANAGER_H
